package br.com.fatecpg.mdioficina;

/*
 * ProgramacaoServicoJInternalFrame.java
 *
 * Created on 17 de Maio de 2009, 11:36
 */



/**
 *
 * @author  Taiguara
 */
public class ProgramacaoServicoJInternalFrame extends javax.swing.JInternalFrame {

    /** Creates new form ProgramacaoServicoJInternalFrame */
    public ProgramacaoServicoJInternalFrame() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        servicorealizadobuttonGroup = new javax.swing.ButtonGroup();
        valorbuttonGroup = new javax.swing.ButtonGroup();
        jPanel1 = new javax.swing.JPanel();
        cdservicojLabel = new javax.swing.JLabel();
        cdservicojTextField = new javax.swing.JTextField();
        placajLabel = new javax.swing.JLabel();
        placajTextField = new javax.swing.JTextField();
        proprietariojLabel = new javax.swing.JLabel();
        dtentradajLabel = new javax.swing.JLabel();
        dtsaidajLabel = new javax.swing.JLabel();
        dtsaidajTextField = new javax.swing.JTextField();
        tpservicojLabel = new javax.swing.JLabel();
        vlservicojLabel = new javax.swing.JLabel();
        vlservicojTextField = new javax.swing.JTextField();
        dtentradajTextField = new javax.swing.JTextField();
        tpservicojComboBox = new javax.swing.JComboBox();
        servicorealizadojLabel = new javax.swing.JLabel();
        valorpagojLabel = new javax.swing.JLabel();
        proprietariojTextField = new javax.swing.JTextField();
        simjRadioButton = new javax.swing.JRadioButton();
        naojRadioButton = new javax.swing.JRadioButton();
        simjRadioButton1 = new javax.swing.JRadioButton();
        naojRadioButton1 = new javax.swing.JRadioButton();
        jLabel1 = new javax.swing.JLabel();
        jComboBox1 = new javax.swing.JComboBox();
        jButton1 = new javax.swing.JButton();
        jButton2 = new javax.swing.JButton();
        jButton3 = new javax.swing.JButton();

        setClosable(true);
        setIconifiable(true);
        setMaximizable(true);
        setResizable(true);
        setTitle("Programar Serviço");
        setFrameIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/fatecpg/images/icone_servico_24x24.png"))); // NOI18N

        jPanel1.setBackground(new java.awt.Color(199, 204, 213));

        cdservicojLabel.setText("Cód. Serviço:");

        cdservicojTextField.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cdservicojTextFieldActionPerformed(evt);
            }
        });

        placajLabel.setText("Placa Veículo:");

        placajTextField.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                placajTextFieldActionPerformed(evt);
            }
        });

        proprietariojLabel.setText("Proprietário do Veículo:");

        dtentradajLabel.setText("Data de Entrada:");

        dtsaidajLabel.setText("Data de Saída:");

        dtsaidajTextField.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                dtsaidajTextFieldActionPerformed(evt);
            }
        });

        tpservicojLabel.setText("Tipo Serviço:");

        vlservicojLabel.setText("Valor Serviço:");

        dtentradajTextField.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                dtentradajTextFieldActionPerformed(evt);
            }
        });

        tpservicojComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "-- Selecione --", "Item 2", "Item 3", "Item 4" }));
        tpservicojComboBox.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                tpservicojComboBoxActionPerformed(evt);
            }
        });

        servicorealizadojLabel.setText("Serviço Realizado:");

        valorpagojLabel.setText("Valor Pago:");

        simjRadioButton.setBackground(new java.awt.Color(199, 203, 214));
        servicorealizadobuttonGroup.add(simjRadioButton);
        simjRadioButton.setText("Sim");

        naojRadioButton.setBackground(new java.awt.Color(199, 203, 214));
        servicorealizadobuttonGroup.add(naojRadioButton);
        naojRadioButton.setText("Não");
        naojRadioButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                naojRadioButtonActionPerformed(evt);
            }
        });

        simjRadioButton1.setBackground(new java.awt.Color(199, 203, 214));
        valorbuttonGroup.add(simjRadioButton1);
        simjRadioButton1.setText("Sim");

        naojRadioButton1.setBackground(new java.awt.Color(199, 203, 214));
        valorbuttonGroup.add(naojRadioButton1);
        naojRadioButton1.setText("Não");
        naojRadioButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                naojRadioButton1ActionPerformed(evt);
            }
        });

        jLabel1.setText("Funcionário Responsável:");

        jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "-- Selecione --", "Item 2", "Item 3", "Item 4" }));

        jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/fatecpg/images/botao_adiciona_24x24.png"))); // NOI18N
        jButton1.setText("Cadastrar");

        jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/fatecpg/images/botao_limpar_24x24.png"))); // NOI18N
        jButton2.setText("Limpar");

        jButton3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/fatecpg/images/botao_cancela_24x24.png"))); // NOI18N
        jButton3.setText("Cancelar");

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(proprietariojLabel)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(proprietariojTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 253, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()
                                .addComponent(simjRadioButton)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(naojRadioButton)
                                .addGap(39, 39, 39))
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()
                                .addComponent(jLabel1)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jComboBox1, 0, 243, Short.MAX_VALUE))
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                        .addGroup(jPanel1Layout.createSequentialGroup()
                                            .addComponent(cdservicojLabel)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(cdservicojTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE))
                                        .addGroup(jPanel1Layout.createSequentialGroup()
                                            .addComponent(dtentradajLabel)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(dtentradajTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE))
                                        .addGroup(jPanel1Layout.createSequentialGroup()
                                            .addComponent(tpservicojLabel)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(tpservicojComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                    .addComponent(servicorealizadojLabel))
                                .addGap(12, 12, 12)
                                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(jPanel1Layout.createSequentialGroup()
                                        .addGap(18, 18, 18)
                                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addGroup(jPanel1Layout.createSequentialGroup()
                                                .addComponent(vlservicojLabel)
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                .addComponent(vlservicojTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 94, Short.MAX_VALUE))
                                            .addComponent(valorpagojLabel)
                                            .addGroup(jPanel1Layout.createSequentialGroup()
                                                .addComponent(dtsaidajLabel)
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                .addComponent(dtsaidajTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addGroup(jPanel1Layout.createSequentialGroup()
                                                .addComponent(simjRadioButton1)
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                .addComponent(naojRadioButton1))))
                                    .addGroup(jPanel1Layout.createSequentialGroup()
                                        .addGap(17, 17, 17)
                                        .addComponent(placajLabel)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(placajTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                        .addGap(247, 247, 247))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(jButton3)
                        .addGap(60, 60, 60)
                        .addComponent(jButton2)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jButton1)))
                .addContainerGap())
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(cdservicojLabel)
                            .addComponent(cdservicojTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(placajLabel)
                            .addComponent(placajTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(proprietariojLabel)
                            .addComponent(proprietariojTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(dtentradajLabel)
                            .addComponent(dtentradajTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(dtsaidajLabel)
                            .addComponent(dtsaidajTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(tpservicojLabel))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGap(78, 78, 78)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(vlservicojLabel)
                            .addComponent(tpservicojComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(vlservicojTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(valorpagojLabel)
                    .addComponent(servicorealizadojLabel))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(simjRadioButton)
                        .addComponent(naojRadioButton))
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(simjRadioButton1)
                        .addComponent(naojRadioButton1)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel1)
                    .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 32, Short.MAX_VALUE)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButton3)
                    .addComponent(jButton2)
                    .addComponent(jButton1))
                .addContainerGap())
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 400, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

private void placajTextFieldActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_placajTextFieldActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_placajTextFieldActionPerformed

private void dtsaidajTextFieldActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_dtsaidajTextFieldActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_dtsaidajTextFieldActionPerformed

private void dtentradajTextFieldActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_dtentradajTextFieldActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_dtentradajTextFieldActionPerformed

private void cdservicojTextFieldActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cdservicojTextFieldActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_cdservicojTextFieldActionPerformed

private void tpservicojComboBoxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_tpservicojComboBoxActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_tpservicojComboBoxActionPerformed

private void naojRadioButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_naojRadioButtonActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_naojRadioButtonActionPerformed

private void naojRadioButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_naojRadioButton1ActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_naojRadioButton1ActionPerformed


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel cdservicojLabel;
    private javax.swing.JTextField cdservicojTextField;
    private javax.swing.JLabel dtentradajLabel;
    private javax.swing.JTextField dtentradajTextField;
    private javax.swing.JLabel dtsaidajLabel;
    private javax.swing.JTextField dtsaidajTextField;
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton2;
    private javax.swing.JButton jButton3;
    private javax.swing.JComboBox jComboBox1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JRadioButton naojRadioButton;
    private javax.swing.JRadioButton naojRadioButton1;
    private javax.swing.JLabel placajLabel;
    private javax.swing.JTextField placajTextField;
    private javax.swing.JLabel proprietariojLabel;
    private javax.swing.JTextField proprietariojTextField;
    private javax.swing.ButtonGroup servicorealizadobuttonGroup;
    private javax.swing.JLabel servicorealizadojLabel;
    private javax.swing.JRadioButton simjRadioButton;
    private javax.swing.JRadioButton simjRadioButton1;
    private javax.swing.JComboBox tpservicojComboBox;
    private javax.swing.JLabel tpservicojLabel;
    private javax.swing.ButtonGroup valorbuttonGroup;
    private javax.swing.JLabel valorpagojLabel;
    private javax.swing.JLabel vlservicojLabel;
    private javax.swing.JTextField vlservicojTextField;
    // End of variables declaration//GEN-END:variables

}
